package com.example.source.spring.scopedproxymode;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("proxymode")
@RestController
public class ScopedProxyModeController {
    //按接口注入时为代理对象
    @Autowired
    private UserInterface userInterface;

    @GetMapping()
    public void process(){
        userInterface.process();
    }
}
